package apis

type CodeType struct {
	Code int
	Msg  string
}

var (
	InternalError          = &CodeType{10000, "内部错误"}
	DBQueryError           = &CodeType{10001, "查询数据失败"}
	DBCreateError          = &CodeType{10002, "新增数据失败"}
	DBUpdateError          = &CodeType{10003, "更新数据失败"}
	DBDeleteError          = &CodeType{10004, "删除数据失败"}
	RepeatedDataError      = &CodeType{10005, "数据已存在"}
	NotFoundError          = &CodeType{10006, "数据不存在"}
	ParamterValidatorError = &CodeType{10007, "参数错误"}
	DBGetCountError        = &CodeType{10008, "获取数据条数错误"}
	CallBackError          = &CodeType{10009, "回调失败错误"}
	TimeError              = &CodeType{10010, "时间错误"}
	WeekTimeError          = &CodeType{10011, "周时间设置错误"}
	ImageError             = &CodeType{10012, "图片错误"}

	LiveStartError               = &CodeType{30017, "直播已开始"}
	LiveEndError                 = &CodeType{30018, "直播已结束"}
	LikesStatisticsError         = &CodeType{30019, "点赞统计查询失败"}
	VoteStatisticsError          = &CodeType{30020, "投票统计查询失败"}
	CreateLiveStreamError        = &CodeType{40001, "创建直播流失败"}
	UpdateLiveStreamError        = &CodeType{40002, "更新直播流失败"}
	StartLiveError               = &CodeType{40003, "开启直播失败"}
	EndLiveError                 = &CodeType{40004, "关闭直播失败"}
	StartRecordError             = &CodeType{40005, "开启直播录制失败"}
	StopRecordError              = &CodeType{40006, "停止直播录制失败"}
	SyncRecordError              = &CodeType{40007, "同步录制视频失败"}
	LiveTimeError                = &CodeType{40008, "直播时间不能小于当前时间"}
	PushStreamTimeBeforeError    = &CodeType{40009, "推流有效时间小于当前时间"}
	PushStreamTimeError          = &CodeType{40010, "推流有效时间设置不能大于30天"}
	DeleteLiveError              = &CodeType{40011, "正在直播不能删除"}
	UpOrDownError                = &CodeType{40012, "上移或下移失败"}
	CreateImError                = &CodeType{40013, "创建聊天室失败"}
	DestroyImError               = &CodeType{40014, "关闭聊天室失败"}
	NoSpeakImError               = &CodeType{40015, "禁言或取消禁言失败"}
	GetUserSignError             = &CodeType{40016, "获取签名失败"}
	SendSmsCodeError             = &CodeType{40017, "发送短信验证码失败"}
	CheckSmsCodeError            = &CodeType{40018, "校验短信验证码失败"}
	GenerateViewCodeError        = &CodeType{40019, "生成观看码失败"}
	ResetViewCodeError           = &CodeType{40020, "重置观看码失败"}
	BindAccountError             = &CodeType{40021, "绑定账户失败"}
	DressLiveError               = &CodeType{40022, "直播彩排失败"}
	GetViewCodeDetailError       = &CodeType{40023, "获取观看码使用详情失败"}
	SavePullStreamError          = &CodeType{40024, "保存拉流地址失败"}
	StartPullStreamLiveError     = &CodeType{40025, "开启拉流失败"}
	GetPersonalizationError      = &CodeType{40026, "获取个性化设置失败"}
	SendEmailCodeError           = &CodeType{40027, "发送邮箱验证码失败"}
	CheckEmailCodeError          = &CodeType{40028, "校验邮箱验证码失败"}
	SavePublishError             = &CodeType{40029, "保存发布配置失败"}
	MoveViewError                = &CodeType{40030, "移动视角失败"}
	StopPullStreamLiveError      = &CodeType{40031, "停止拉流失败"}
	CreatePlatformError          = &CodeType{40032, "创建平台失败"}
	UpdatePlatformError          = &CodeType{40033, "更新平台失败"}
	DeletePlatformError          = &CodeType{40034, "删除平台失败"}
	StartPlatformError           = &CodeType{40035, "开启平台失败"}
	StopPlatformError            = &CodeType{40036, "停止平台失败"}
	MaxPushNumError              = &CodeType{40037, "最大转推数错误"}
	PushTimeExpireError          = &CodeType{40038, "推流时间已过期"}
	StartPCLiveError             = &CodeType{40039, "开启pc直播失败"}
	StopPCLiveError              = &CodeType{40040, "停止pc直播失败"}
	ResetPullStreamError         = &CodeType{40041, "重置拉流地址失败"}
	EnableOrStopIMError          = &CodeType{40042, "启用或者停用聊天功能失败"}
	MaxLiveDurationError         = &CodeType{40043, "超过最大时长错误"}
	MaxParallNumError            = &CodeType{40044, "最大并发人数"}
	SyncLikesNum                 = &CodeType{50001, "同步投点赞失败"}
	GetLikesNumError             = &CodeType{50002, "获取点赞失败"}
	AddLikesNumError             = &CodeType{50003, "添加点赞失败"}
	ReviewCommentError           = &CodeType{60001, "审核评论失败"}
	AddCommentError              = &CodeType{60002, "添加评论失败"}
	GetCommentError              = &CodeType{60003, "获取评论失败"}
	NoSpeakCommentError          = &CodeType{60004, "禁言用户不能评论"}
	AddSourceGroupError          = &CodeType{70001, "创建信源分组失败"}
	UpdateSourceGroupError       = &CodeType{70002, "更新信源分组失败"}
	DeleteSourceGroupError       = &CodeType{70004, "删除信源分组失败"}
	AddSourceGroupRelationError  = &CodeType{70005, "添加信源分组失败"}
	AddSourceError               = &CodeType{70101, "创建信源失败"}
	UpdateSourceError            = &CodeType{70102, "更新信源失败"}
	StartSourceError             = &CodeType{70103, "开启信源失败"}
	StopSourceError              = &CodeType{70104, "关闭信源失败"}
	ChangeSourceError            = &CodeType{70105, "切换信源失败"}
	UpdateShareSourceConfigError = &CodeType{70106, "更新分享信源配置失败"}
	SourceIsUsing                = &CodeType{70107, "信源正在被使用"}
	SourceIsUsed                 = &CodeType{70108, "信源被使用"}
	TransCodeIsUsing             = &CodeType{70109, "转码正在被使用"}
	SourceRepeatError            = &CodeType{70110, "流地址重复"}
	SourceChangeError            = &CodeType{70111, "信源切换失败"}
	RepeatError                  = &CodeType{70112, "信源重复错误"}
	ShareSourceChangeError       = &CodeType{70113, "分享信源切换错误"}
	CreateTimeTaskError          = &CodeType{70114, "任务开启不能设置定时任务"}
	AddChannelError              = &CodeType{70201, "创建信道失败"}
	UpdateChannelError           = &CodeType{70202, "更新信道失败"}
	DeleteChannelError           = &CodeType{70203, "删除信道失败"}
	EnableOrCancelTimeTaskError  = &CodeType{70204, "启用或者取消定时通到失败"}
	SaveTrafficOnError           = &CodeType{70301, "保存上车点失败"}
	DeleteTrafficOnError         = &CodeType{70302, "删除上车点失败"}
	SaveMediaProcess             = &CodeType{70303, "保存媒体处理失败"}
	DeleteMediaProcess           = &CodeType{70304, "删除媒体处理失败"}
	SaveTrafficOffError          = &CodeType{70305, "保存下车点失败"}
	DeleteTrafficOffError        = &CodeType{70306, "删除下车点失败"}
	SaveWorkflowError            = &CodeType{70307, "保存通道配置失败"}
	StartWorkflowError           = &CodeType{70308, "开启通道失败"}
	SaveCortexError              = &CodeType{70309, "保存矩阵失败"}
	DeleteCortexError            = &CodeType{70310, "删除矩阵失败"}
	CreateCortexTaskError        = &CodeType{70310, "创建软矩阵任务失败"}
	UpdateCortexOutputError      = &CodeType{70311, "更细矩阵名称失败"}
	StartCortexTaskError         = &CodeType{70312, "开启矩阵任务失败"}
	StopCortexTaskError          = &CodeType{70313, "停止矩阵任务失败"}
	UpIsUsingError               = &CodeType{70314, "上车点正在被使用"}
	ScheduleCountError           = &CodeType{70315, "调度超额错误"}
	UpStartError                 = &CodeType{70316, "上车点开启错误"}
	UpStartTimeError             = &CodeType{70317, "上车点开启时间错误"}
	OutPutNameRepeatError        = &CodeType{70318, "输出重名错误"}
	CreateTransCodeTaskError     = &CodeType{70401, "创建转码任务失败"}
	StopTransCodeTaskError       = &CodeType{70402, "停止转码任务失败"}
	StartTransCodeTaskError      = &CodeType{70403, "开始转码任务失败"}
	UpdateTransCodeTaskError     = &CodeType{70405, "开始转码任务失败"}
	StartSourceRecordError       = &CodeType{70501, "开启信源录制任务失败"}
	AutoSwitchSourceError        = &CodeType{70502, "自动切换信源失败"}
	GetWechatAccessTokenError    = &CodeType{70601, "获取微信token失败"}
	GetWechatUserInfoError       = &CodeType{70602, "获取微信用户失败"}
	GetWechatShareTicketError    = &CodeType{70603, "获取微信分享ticket失败"}
	CheckPemError                = &CodeType{80001, "证书校验失败"}
	AIAuditError                 = &CodeType{90001, "创建ai审核失败"}
	AIAuditCallBackError         = &CodeType{90002, "ai审核回调失败"}
	AuditUpdateStateError        = &CodeType{90003, "审核状态更新失败"}
	StartMonitorError            = &CodeType{100001, "开启监看失败"}
	StopMonitorError             = &CodeType{100002, "停止监看失败"}
	CreateMonitorShareError      = &CodeType{100003, "创建监看分享失败"}
	TemplateIsEmptyError         = &CodeType{100004, "模版未选择"}
	ProgramTimeError             = &CodeType{110001, "节目单时间冲突"}
	EventStartedError            = &CodeType{110002, "活动已经开始"}
	RepeatDrawError              = &CodeType{120001, "不能重复参与抽奖"}
	DrawWhiteNumError            = &CodeType{120002, "白名单获奖人数不得超过奖品数"}
	WorksiteMemberError          = &CodeType{130001, "工口成员不存在"}
	WorksiteMemberRepeatError    = &CodeType{130002, "工口成员重复"}
	WorksiteRepeatError          = &CodeType{130003, "工口重复"}
	DeleteWorksiteError          = &CodeType{130004, "当前工口已经关联成员"}
	DeleteWorksiteMemberError    = &CodeType{130004, "当前成员已经关联活动"}
	OriginTimeOutError           = &CodeType{140001, "超时时间范围错误"}
	CertificateNameError         = &CodeType{140002, "证书重名错误"}
	DomainExistError             = &CodeType{140003, "证书不存在"}
	CertificateExistError        = &CodeType{140004, "证书不存在"}
)

var (
	DynamicParamErr           = &CodeType{1001, "请求参数错误"}
	DynamicRuleErr            = &CodeType{1002, "加速规则错误"}
	DynamicLayerPortErr       = &CodeType{1006, "tcp/udp 加速网络映射端口有误"}
	DynamicLayerOriginPortErr = &CodeType{1007, "tcp/udp 源站应用端口有误"}
	DynamicEditErr            = &CodeType{1003, "写入加速配置失败"}
	DynamicErr                = &CodeType{1004, "加速配置失败"}
	IsMaster                  = &CodeType{1005, "源站必须包含master节点"}
)
